<template>
  <div class="polygon_tab polygon_tab_grid">
    <div class="p_tab_title">网格化微站数据</div>
    <div class="polygon_tab_content">
      <div class="tab_row">
        <div class="locat_box">
          <div class="locat_box_icon"></div>
          <div class="locat_box_icon_inner"></div>
          <span>******站点</span>
        </div>
        <div class="per_data">
          <div>PM2.5</div>
          <span>249</span>
        </div>
        <div class="per_data">
          <div>PM10</div>
          <span>249</span>
        </div>
        <div class="per_data">
          <div>SO2</div>
          <span>249</span>
        </div>
        <div class="per_data">
          <div>NO2</div>
          <span>249</span>
        </div>
      </div>

      <div class="tab_row">
        <div class="locat_box">
          <div class="locat_box_icon"></div>
          <div class="locat_box_icon_inner"></div>
          <span>******站点</span>
        </div>
        <div class="per_data">
          <div>PM2.5</div>
          <span>249</span>
        </div>
        <div class="per_data">
          <div>PM10</div>
          <span>249</span>
        </div>
        <div class="per_data">
          <div>SO2</div>
          <span>249</span>
        </div>
        <div class="per_data">
          <div>NO2</div>
          <span>249</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'PolygonTabGrid',
  components: {},
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="scss">
@keyframes location_fadeIn {
  from {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0.5;
  }
}

.polygon_tab_grid {
  top: 135px;
  left: 10px;
  width: 487px;
  height: 284px;
  background-image: url('../../assets/img/polygon_1.png');
  background-size: contain;
  color: #00e4ff;

  &:hover {
    filter: drop-shadow(0 0 20px rgba(14, 166, 229, 0.5));
    transform: translate3d(10px, -10px, 20px) scale(1.01);
    perspective: 500px;
  }

  .tab_row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;

    &:first-child {
      border-bottom: 1px dashed #2ecefe;
    }
  }

  .locat_box {
    position: relative;
    .locat_box_icon {
      margin: 8px auto;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background-image: url('../../assets/img/locat_box_icon.png');
      background-size: contain;
      background-repeat: no-repeat;
      opacity: 0.5;
      animation-name: location_fadeIn;
      animation-duration: 2s;
      animation-iteration-count: infinite;
      animation-fill-mode: backwards;
    }
    .locat_box_icon_inner {
      position: absolute;
      top: 5px;
      left: 50%;
      transform: translateX(-50%);
      width: 64px;
      height: 64px;
      background-size: 20px 30px;
      background-position: center center;
      background-image: url('../../assets/img/locat_icon.png');
      background-repeat: no-repeat;
    }

    span {
      display: block;
      font-size: 18px;
      text-align: center;
    }
  }

  .per_data {
    text-align: center;
    font-size: 14px;
    span {
      display: block;
      margin-top: 8px;
      font-weight: 600;
    }

    &:nth-child(2) {
      span {
        color: #dd4862;
      }
    }
    &:nth-child(3) {
      span {
        color: #ddd448;
      }
    }
    &:nth-child(4) {
      span {
        color: #2ecefe;
      }
    }
    &:nth-child(5) {
      span {
        color: #9548dd;
      }
    }
  }
}
</style>
